﻿using System;

using SharedGenomics.Workbench.Core;
using SharedGenomics.Workbench.Annotations;

namespace SharedGenomics.Workbench.Views.WindowsForms
{
    public class MenuFactory : IMenuFactory
    {
        #region IMenuFactory Members

        public IMenu CreateMainMenu()
        {
            return new TreeViewMenu();
        }

        public IMenu CreateContextMenu()
        {
            return new ContextMenuView();
        }

        public IMenuItem CreateMainMenuItem()
        {
            return new TreeNodeMenuItem();
        }

        public IMenuItem CreateContextMenuItem()
        {
            return new ContextMenuItemView();
        }

        public IMenuItem CreateAnnotationContextMenuItem(AnnotationRequestStatus requestStatus)
        {
            return new AnnotationContextMenuItemView(requestStatus);
        }

        public IMenu CreateMenuBar()
        {
            return new MenuBarView();
        }

        public IMenuItem CreateMenuBarItem()
        {
            return new ContextMenuItemView();
        }

        #endregion
    }
}
